<?php
/* 	These code was generated using phpCIGen v 2.a (21/05/2012)
	#zaqi 		zaqi.smart@gmail.com,http://zenzaqi.blogspot.com, 
	#CV. Trust Solution, jl. Saronojiwo 2/19 Surabaya, http://www.ts.co.id
	
	+ Module  		: m_vendor Print
	+ Description	: For Print View
	+ Filename 		: p_m_vendor.php
 	+ Author  		: zainal, son, husnu, noval
 	+ Created on 24/Jul/2012 11:40:14
	
*/
?>
<?php if(@$type!=="excel") { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vendor</title>
<link rel='stylesheet' type='text/css' href='../assets/modules/main/css/printstyle.css'/>
</head>
<body onload="window.print();">
<?php } else { ?>
<html xmlns:o="urn:schemas-microsoft-com:office:office"
                                       xmlns:x="urn:schemas-microsoft-com:office:excel"
                                        xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vendor</title>
<style>
.table{
        border-collapse:collapse;      
}
</style>
<xml>
 <x:ExcelWorkbook>
  <x:ExcelWorksheets>
   <x:ExcelWorksheet>
    <x:Name>Sheet</x:Name>
    <x:WorksheetOptions>
     <x:Print>
        <x:Gridlines />
     </x:Print>
    </x:WorksheetOptions>
   </x:ExcelWorksheet>
  </x:ExcelWorksheets>
 </x:ExcelWorkbook>
</xml>
</head>
<?php } ?>
<table summary='Vendor'>
	<caption>Vendor</caption>
	<thead>
		<tr>
			<th scope='col'>No</th>
			<th scope='col'>Kode</th>
			<th scope='col'>Nama</th>
			<th scope='col'>Alamat</th>
			<th scope='col'>No. Telepon</th>
			<th scope='col'>No. Fax</th>
			<th scope='col'>Email</th>
			<th scope='col'>Contact Person</th>
			<th scope='col'>Direktur</th>
			<th scope='col'>Jabatan</th>
			<th scope='col'>Rekening</th>
			<th scope='col'>Bank</th>
			<th scope='col'>Pemilik Rekening</th>
			<th scope='col'>Sertifikasi</th>
			<th scope='col'>Tanggal Sertifikasi</th>
			<th scope='col'>NPWP</th>
			<th scope='col'>Kategori Vendor</th>
			<th scope='col'>Aktif</th>
		</tr>
	</thead>
	<tbody>
		<?php $i=0; foreach($data_print as $print) { $i++; ?>
		<tr>
			<td><?php echo $i; ?></td>
			<td><?php echo $print->vendor_kode; ?></td>
			<td><?php echo $print->vendor_name; ?></td>
			<td><?php echo $print->vendor_address; ?></td>
			<td><?php echo $print->vendor_phone; ?></td>
			<td><?php echo $print->vendor_fax; ?></td>
			<td><?php echo $print->vendor_email; ?></td>
			<td><?php echo $print->vendor_cp; ?></td>
			<td><?php echo $print->vendor_dir; ?></td>
			<td><?php echo $print->vendor_dirpos; ?></td>
			<td><?php echo $print->vendor_rek; ?></td>
			<td><?php echo $print->vendor_bank; ?></td>
			<td><?php echo $print->vendor_bankowner; ?></td>
			<td><?php echo $print->vendor_cert; ?></td>
			<td><?php echo $this->m_public_function->indonesiaDate(date('Y-m-d', strtotime($print->vendor_certdate))); ?></td>
			<td><?php echo $print->vendor_npwp; ?></td>
			<td><?php echo $print->div_name; ?></td>
			<td><?php echo $print->vendor_active; ?></td>
			</tr>
		<?php } ?>
	</tbody>
	<tfoot><tr><th scope='row'>Total</th><td colspan='17'><?php echo count($data_print); ?></td></tr></tfoot>
</body>
</html>